package dal;

import java.awt.Dimension;
import java.awt.Point;

public class MapStruct {
	private int startX, startY;    //the map's upper-left corner
	private Dimension dimension;
	private int ballX, ballY;
	//private LinkedList<Rock> rocks;
	//private LinkedList<Attacker> attackers;
	//private LinkedList<Tool> tools;
	
	//changing the coordinates of the upper-left corner
	public void setUpperLeftCorner(int startX, int startY){
		this.startX = startX;
		this.startY = startY;
	}
	
	//reading the coordinates of the upper-left corner
	public Point getUpperLeftCorner(){
		return new Point(startX, startY);
	}
	
	//reading the coordinates of the ball
	public void setBallPosition(int ballX, int ballY){
		this.ballX = ballX;
		this.ballY = ballY;
	}
	
	//changing the coordinates of the ball
	public Point getBallPosition(){
		return new Point(ballX, ballY);
	}
	
	//setting the dimension of the map
	public void setDimension(int x, int y){
		this.dimension = new Dimension(x, y);
	}
	
	//reading the the dimension of the map
	public Dimension getDimension(){
		return this.dimension;
	}
	
	//TODO:Review all
	/*
	public void setGround(Ground g){
		grounds.add(g);
	}
	
	public void addRock(Rock r){
		rocks.add(r);
	}

	public void addAttacker(Attacker a){
		attackers.add(a);
	}

	public void addTool(Tool t){
		tools.add(t);
	}
	
	public Iterator<Ground> getGroundIterator(){
		return grounds.iterator();
	}
	
	public Iterator<Rock> getRockIterator(){
		return rocks.iterator();
	}
	
	public Iterator<Attacker> getAttackerIterator(){
		return attackers.iterator();
	}
	
	public Iterator<Tool> getToolIterator(){
		return tools.iterator();
	}*/
}
